#ifndef WINDOW5_H
#define WINDOW5_H

#include <QMainWindow>
#include <QSqlDatabase>
#include <QSqlQuery>
class Window5 : public QMainWindow
{
    Q_OBJECT
public:
    explicit Window5(QWidget *parent = nullptr);
    ~Window5();
    void init();
    //查询
    void select();
    //添加
    void insert();
signals:
    void sendSignal(int value);
public slots:
    void getValue(int value);
private:
    QSqlDatabase db;
    QString hostname = "localhost";
    int port = 3306;
    QString databaseName = "denglibin";
    QString username = "root";
    QString password = "denglibin";

};

#endif // WINDOW5_H
